package cn.itcast.bos.delivery.dao;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import cn.itcast.bos.domain.delivery.WayBill;

public interface WayBillDao extends JpaRepository<WayBill, Integer> {

	WayBill findByWayBillNum(String wayBillNum);

	@Query("from WayBill w where w.id in:wayBillIds")
	List<WayBill> getByIds(@Param("wayBillIds")List<Integer> wayBillIds);

}
